package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    //分页查询
    Page<NursingLevel> selectByPage(String name, Integer status);

    //查询所有护理等级
    List<NursingLevel> selectAll();

    //根据id查询
    NursingLevel selectById(Long id);

    //启用/禁用
    void enableOrDisable(Long id, Integer status);

    //删除
    void removeNursingLevel(Long id);

    //添加
    void addNursingLevel(NursingLevel nursingLevel);

    //修改护理等级信息
    void updateNursingLevel(NursingLevel nursingLevel);
}
